package joc;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;

public class Item {
	String nom;
	int atacBonus, defensaBonus;
	
	public Item (String n, int aB, int dB) {

		
		nom = n;
		atacBonus = aB;
		defensaBonus = dB;
		
//		ee.ee.tancarConnexio(conn);
		
	}
	
	public String getNom() {
		return nom;
	}
	
	public String dades() {
		return nom + " " + atacBonus + "/" + defensaBonus;
	}
}
